Fixup previous commit
authorJustin Burkett <justin@burkett.cc>
Fri, 19 May 2017 21:37:08 +0000 (17:37 -0400)
committerJustin Burkett <justin@burkett.cc>
Fri, 19 May 2017 21:38:02 +0000 (17:38 -0400)
* which-key.el (which-key--compute-binding): Need to copy name of remapped
  command

Fixes #170

which-key.el

index fcb75cbd07bd51e612cb91b4cb4b198584468166..8f1b038292f8477fd20705cdf666aefd2659c5cc 100644 (file)
@@ -1519,7 +1519,7 @@ Requires `which-key-compute-remaps' to be non-nil"
   (let (remap)
     (if (and which-key-compute-remaps
              (setq remap (command-remapping (intern binding))))
-        (symbol-name remap)
+        (copy-sequence (symbol-name remap))
       binding)))
 
 (defun which-key--get-current-bindings ()